package controleurs;

import javax.swing.JTextField;
import javax.swing.event.CaretEvent;
import javax.swing.event.CaretListener;

import modele.ModeleChoixListe;

public class ChampChoixCOntrolleur implements CaretListener {
	private ModeleChoixListe modelec;
	public ChampChoixCOntrolleur(ModeleChoixListe modelec) {
		this.modelec=modelec;
	}
	public void caretUpdate(CaretEvent e) {
		modelec.setChamp(((JTextField) e.getSource()).getText());
	}
}
